/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mamayukero.problem.environment.map;

import java.awt.Point;
import java.util.ArrayList;

public class Path {
    public Point startPoint;
    public Point endPoint;
    public ArrayList<Point> point;
    
    public Path(Point start, Point end, ArrayList<Point> point) {
        this.startPoint = start;
        this.endPoint = end;
        this.point = point;
    }
    
    public Path(Point start, Point end) {
        this.startPoint = start;
        this.endPoint = end;
        this.point = new ArrayList<Point>();
    }
    
    public void setPoint(ArrayList<Point> point) {
        this.point = point;
    }
    
    @Override
    public String toString() {
        StringBuilder result = new StringBuilder();
        for (Point p : point) {
            result.append("[" + p.x + "," + p.y + "]");
        }
        return result.toString();
    }
    
}
